\documentclass[a4paper]{article}
\usepackage[spanish ,activeacute]{babel}
\usepackage{algorithm}
\usepackage{caratula}
\usepackage{algorithmic}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{lastpage}

\textheight=23cm
\textwidth=18cm
\topmargin=-1cm
\oddsidemargin=-1cm
\pagestyle{fancy}

\begin{document}

\materia{Algoritmos y Estructuras de Datos III}

\titulo{Trabajo Pr\'actico 2}
\integrante{Brambati, Mart\'in}{150/07}{martinbrambati@gmail.com}
\integrante{Giudici, Juan Carlos}{827/06}{elchudi@gmail.com}
\integrante{Juffar, Bruno}{664/06}{oktubre21@gmail.com}
\integrante{Muhamed, Ricardo}{093/06}{ricardo.muhamed@gmail.com}

\maketitle

\cfoot{\thepage\ / \pageref{LastPage}}
\rhead{Brambati (150/07) - Giudici (827/06) - Juffar (664/06) - Muhamed(093/06)} 
\lhead{TP2}

\tableofcontents

\include{ej1}
\include{ej2}
\include{ej3}

\end{document}